﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="SimpleCalculator._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        SIMPLE CALCULATOR</h2>
    <p>
        Insert first number
        <asp:TextBox ID="tb_number1" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="tb_number1" ErrorMessage="Insert a number" 
            MaximumValue="1000000" MinimumValue="0" Type="Double"></asp:RangeValidator>
    </p>
    <p>
        Insert second number 
        <asp:TextBox ID="tb_number2" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator2" runat="server" 
            ControlToValidate="tb_number2" ErrorMessage="Insert a number" 
            MaximumValue="1000000" MinimumValue="0" Type="Double"></asp:RangeValidator>
    </p>
    <p>
        <asp:Button ID="bt_add" runat="server" Text="Add" />
    </p>
    <p>
        The sum of the two numbers is    
        <asp:Label ID="lb_answer" runat="server"></asp:Label>
    </p>
    </asp:Content>
